package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.PeisongzhanMapper;
import com.ruoyi.system.domain.Peisongzhan;
import com.ruoyi.system.service.IPeisongzhanService;

/**
 * 配送站Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-08-13
 */
@Service
public class PeisongzhanServiceImpl implements IPeisongzhanService 
{
    @Autowired
    private PeisongzhanMapper peisongzhanMapper;

    /**
     * 查询配送站
     * 
     * @param pszId 配送站主键
     * @return 配送站
     */
    @Override
    public Peisongzhan selectPeisongzhanByPszId(Long pszId)
    {
        return peisongzhanMapper.selectPeisongzhanByPszId(pszId);
    }

    /**
     * 查询配送站列表
     * 
     * @param peisongzhan 配送站
     * @return 配送站
     */
    @Override
    public List<Peisongzhan> selectPeisongzhanList(Peisongzhan peisongzhan)
    {
        return peisongzhanMapper.selectPeisongzhanList(peisongzhan);
    }

    /**
     * 新增配送站
     * 
     * @param peisongzhan 配送站
     * @return 结果
     */
    @Override
    public int insertPeisongzhan(Peisongzhan peisongzhan)
    {
        return peisongzhanMapper.insertPeisongzhan(peisongzhan);
    }

    /**
     * 修改配送站
     * 
     * @param peisongzhan 配送站
     * @return 结果
     */
    @Override
    public int updatePeisongzhan(Peisongzhan peisongzhan)
    {
        return peisongzhanMapper.updatePeisongzhan(peisongzhan);
    }

    /**
     * 批量删除配送站
     * 
     * @param pszIds 需要删除的配送站主键
     * @return 结果
     */
    @Override
    public int deletePeisongzhanByPszIds(Long[] pszIds)
    {
        return peisongzhanMapper.deletePeisongzhanByPszIds(pszIds);
    }

    /**
     * 删除配送站信息
     * 
     * @param pszId 配送站主键
     * @return 结果
     */
    @Override
    public int deletePeisongzhanByPszId(Long pszId)
    {
        return peisongzhanMapper.deletePeisongzhanByPszId(pszId);
    }
}
